package ejb;


import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

public class HotelDTO {
	
	private int idHotel;
	@NotEmpty
	private String nome;
	@NotNull
	private int numeroStelle;
	@NotNull
	private int prezzo;
	
	public int getIdHotel() {
		return this.idHotel;
	}

	public void setIdHotel(int IDHotel) {
		this.idHotel = IDHotel;
	}   
	public String getNome() {
		return this.nome;
	}

	public void setNome(String Nome) {
		this.nome = Nome;
	}   
	public int getNumeroStelle() {
		return this.numeroStelle;
	}

	public void setNumeroStelle(int NumeroStelle) {
		this.numeroStelle = NumeroStelle;
	}   
	public int getPrezzo() {
		return this.prezzo;
	}

	public void setPrezzo(int Prezzo) {
		this.prezzo = Prezzo;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof HotelDTO)) {
		return false;
		}
		HotelDTO hotel = (HotelDTO) obj;
		return (this.idHotel == hotel.idHotel);
	}
   
}
